﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="EditApprovalStatus.aspx.cs" Inherits="CodeDemon.Views.Review.EditApprovalStatus" %>


<h3>Change Your Approval Status</h3>

<form action="/CodeDemon/Review/UpdateApprovalStatus" method="post" id="htmlForm">

    <%
        var review = (from reviewList in ViewData.Model.DAO.GetReviewByReviewFileID(ViewData.Model.CurrentReviewID) select reviewList).FirstOrDefault();

        var sl = from statusList in ViewData.Model.DAO.ReviewStatus where statusList.IsParticipantStatus == true select statusList;
        
         %>
         
         <% foreach (var s in sl) { %>
            <div><label for="newStatusId<%= s.ReviewStatusID %>"><input type="radio" id="newStatusId<%= s.ReviewStatusID %>" name="newStatusId" value="<%= s.ReviewStatusID %>" />Set Status To <%=s.StatusName %></label></div>            <% } %>

    <div>
        <input type="submit" name="Submit" value="Update Approval Status" />
        <input value="Cancel" name="Cancel" type="button" class="jqmClose" />
    </div>

<%= Html.Hidden("ReviewId", ViewData.Model.CurrentReviewID.ToString())%>
</p>

</form>

